package com.zhang.demo.injector.component

import android.content.Context
import com.zhang.demo.MyApplication
import com.zhang.demo.base.BaseActivity
import com.zhang.demo.injector.module.ApplicationModule
import com.zhang.demo.injector.module.DBModule
import dagger.Component
import javax.inject.Singleton

@Singleton
@Component(modules = [ApplicationModule::class, DBModule::class])
interface ApplicationComponent {
    val context: Context
    fun inject(mApplication: MyApplication)
    fun inject(mBaseActivity: BaseActivity)
}